<template>
  <div class="about">
    11111111111{{ fu }}{{111111111111|format}}
    <button @click="anzhu"></button>
  </div>
</template>
<script>
export default {
  props: {
    fu: {
      type: String,//组件传值的类型
      default: "22222",//没传值默认是22222
    },
  },
  data() {
    return {
      name: "我是子组件",
    };
  },
  created() {},
  methods: {
    anzhu() {
      this.$emit("an", this.name);
    },
  },
};
</script>
<style scoped>

</style>